﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="HealthAssignDetail.aspx.cs" Inherits="App_Input_HealthAssignDetail" Title="主管医生职责维护"  EnableEventValidation="false" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script>

    
    function buildChange(object)
    {
     CommonAjaxUtils.FindFloor(object.value,get_floor_Result_CallBack);
     CommonAjaxUtils.FindRoom(object.value,"",get_room_Result_CallBack);

    }
    
    function floorChange(object)
    {
         var objBuildNo= window.document.getElementById('<%=dropBuildNo.ClientID %>')
         CommonAjaxUtils.FindRoom(objBuildNo.value,object.value,get_room_Result_CallBack);
    }
    function get_floor_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
 
                    var drop = window.document.getElementById('<%=dropFloor.ClientID %>');
                    drop.length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object")
                    {                   
　　　　　　                drop.options.add(new Option("",""));
                        for(var i=0; i<ds.length; i++)
　　　　                {
　　　　       
　　　　　　                var name=ds[i].Floor;
　　　　　　                var id=ds[i].Floor;
　　　　　　                drop.options.add(new Option(name,id));
　　　　                }                
                    }
                }
                return
            }
            
            function get_room_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
 
                    var drop = window.document.getElementById('<%=dropRoom.ClientID %>');
                    drop.length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object")
                    {                   
　　　　　　                drop.options.add(new Option("",""));
                        for(var i=0; i<ds.length; i++)
　　　　                {
　　　　       
　　　　　　                var name=ds[i].ApartmentNo;
　　　　　　                var id=ds[i].ApartmentNo;
　　　　　　                drop.options.add(new Option(name,id));
　　　　                }                
                    }
                }
                return
            }
                function onNotifyFloatBarChange(Flg)
    {
        if(Flg)
        {
            window.document.getElementById('<%=lst2.ClientID %>').style.display="block";
        }
        else
        {
            window.document.getElementById('<%=lst2.ClientID %>').style.display="none";
        }
    }

</script>
<asp:Panel ID="PanelNavigate" runat="server" />
    <cc1:comvalidator id="ComValidator1" runat="server" forecolor="Red" CheckItems-Capacity="4">
        <cc1:CheckHalfAttribute Code="E0317" ControlToValidator="txtMemberNo">
            <cc1:ComAbsParamsAttribute Parameter="会员编号" />
        </cc1:CheckHalfAttribute>
    </cc1:comvalidator>
<div>
    <table class="table_border_line">
        <tr>
            <td align="left"  colspan="6">
                <script language="javascript">
                                        (new TitleBar('SearchBar', '管家基本信息')).showBar();
                            </script>
                
                </td>
        </tr>
    </table>
    <table class="table_border_line" style="background:ffffff">
        
        <tr>
            <td style="width:3%"></td>
            <td style="width:20%">
                保健医生编号：</td>
            <td style="width:77%">
                <asp:Label ID="lblDoctorId" runat="server" Width="100%"></asp:Label></td>
        </tr>
        <tr>
            <td style="width:3%"></td>
            <td style="width:20%">
                保健医生姓名：</td>
            <td style="width:77%">
                <asp:Label ID="lblDoctorName" runat="server" Width="100%"></asp:Label></td>
        </tr>
    </table>
    <table class="table_border_line">
        <tr>
            <td align="left"  colspan="6">
                <script language="javascript">
                                        (new TitleBar('SearchBar1', '系统人员权限')).showBar();
                            </script>
                </td>
        </tr>
    </table>
    <table class="table_border_line" style="background:ffffff">
        
        <tr>
            <td style="width: 90px">
                &nbsp;过滤条件：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                </td>
            <td align="left" nowrap="nowrap" width="52%">
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 90px">
                &nbsp;会员编号：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:TextBox ID="txtMemberNo" runat="server" MaxLength="16"></asp:TextBox></td>
            <td align="left" nowrap="nowrap" width="52%">
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 90px">
                &nbsp;会员姓名：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:TextBox ID="txtMemberName" runat="server" MaxLength="100"></asp:TextBox></td>
            <td align="left" nowrap="nowrap" width="52%">
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 90px">
                &nbsp;楼号：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:DropDownList ID="dropBuildNo" runat="server" CausesValidation="True" DataTextField="BuildingNo"
                    DataValueField="BuildingNo" onchange="buildChange(this)" Width="76px">
                </asp:DropDownList></td>
            <td align="left" nowrap="nowrap" width="52%">
            </td>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td style="width: 90px">
                &nbsp;楼层：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:DropDownList ID="dropFloor" runat="server" DataTextField="Floor" DataValueField="Floor"
                    onchange="floorChange(this)" Width="76px">
                </asp:DropDownList></td>
            <td align="left" nowrap="nowrap" width="52%">
            </td>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td style="width: 90px">
                &nbsp;房间号：</td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:DropDownList ID="dropRoom" runat="server" DataTextField="ApartmentNo" DataValueField="ApartmentNo"
                    Width="76px">
                </asp:DropDownList></td>
            <td align="left" nowrap="nowrap" width="52%">
            </td>
            <td align="right">
            </td>
        </tr>
        <tr style="height:5px">
            <td style="width: 90px">
                &nbsp;</td>
            <td align="center" nowrap="nowrap" style="width: 120px">
            </td>
            <td align="left" nowrap="nowrap" width="52%">
            </td>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td style="width: 90px">
                </td>
            <td align="left" nowrap="nowrap" style="width: 120px">
                <asp:Button ID="btnSearch" runat="server" Text="过　滤" CssClass="button" Width="80px" OnClick="btnSearch_Click" /></td>
            <td align="left" nowrap="nowrap" width="52%">
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
        </tr>
        <tr style="height:5px">
            <td style="width: 90px">
                &nbsp;</td>
            <td align="center" nowrap="nowrap" style="width: 120px">
            </td>
            <td align="left" nowrap="nowrap" width="52%">
            </td>
            <td align="right">
            </td>
        </tr>
        
        <tr>
            <td align="center" colspan="4">
                <table border="0" cellpadding="0" cellspacing="0" width="90%">
                    <tr>
                        <td nowrap="nowrap" width="50%">
                            <span style="background-color: #ffffff"><span style="background-color: white">待分配会员列表：</span></span></td>
                        <td style="width: 68px">
                            <br />
                        </td>
                        <td nowrap="nowrap" width="50%">
                            已分配会员<span style="background-color: white">列表：</span></td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" style="height: 15px">
                            <asp:ListBox ID="lst1" runat="server" Height="150px" SelectionMode="Multiple"
                                ToolTip="按Ctrl可以取消选择" Width="100%"></asp:ListBox>
                        </td>
                        <td align="center" style="padding-right: 5px; padding-left: 5px; height: 15px">
                            <asp:Button ID="btnAssignAdd" runat="server" CssClass="button" Height="21px" styleClass="button1" Text="分配会员-->" OnClick="btnAssignAdd_Click" /><br />
                            <br />
                            <asp:Button ID="btnAssignDel" runat="server" CssClass="button" Height="21px" styleClass="button1" Text="<--撤销分配" OnClick="btnAssignDel_Click" /></td>
                        <td nowrap="nowrap" style="height: 15px">
                            <asp:ListBox ID="lst2" runat="server" Height="150px" SelectionMode="Multiple"
                                ToolTip="按Ctrl可以取消选择" Width="100%"></asp:ListBox>
                        </td>
                    </tr>
                </table>
                按Ctrl可以取消选择</td>
        </tr>
        <tr>
            <td colspan="4">
                <table width=100%>
                    <tr>
                        <td style="width:25%"></td>
                        <td align="center" style="width:50%">
                            <asp:Button ID="btnAdd" runat="server" CssClass="button" Text="登　记" Width="80px" OnClick="btnAdd_Click" />&nbsp;
                            <asp:Button ID="btnBlack" runat="server" CssClass="button" Text="返　回" Width="80px" OnClick="btnBlack_Click" /></td>
                        <td style="width:25%"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>    
</asp:Content>

